package com.qc.entity;

import java.sql.ResultSet;
import java.sql.SQLException;

public class OrderBillEntity extends BaseEntity {
	
	private long billId;
	private long orderId;
	private int obType; 
	private String obName; 
	private String receiveUsername; 
	private String receiveMobile;
	private String receiveProvince;
	private String receiveCity;
	private String receiveAddressDetail;
	private String logisticsType;
	
	public static OrderBillEntity getInstance(ResultSet rs) throws SQLException {
		OrderBillEntity entity = new OrderBillEntity();
		entity.setBillId(rs.getLong("bill_id"));
		entity.setOrderId(rs.getLong("order_id"));
		entity.setObType(rs.getInt("ob_type"));
		entity.setObName(rs.getString("ob_name"));
		entity.setReceiveUsername(rs.getString("receive_username"));
		entity.setReceiveMobile(rs.getString("receive_mobile"));
		entity.setReceiveProvince(rs.getString("receive_province"));
		entity.setReceiveCity(rs.getString("receive_city"));
		entity.setReceiveAddressDetail(rs.getString("receive_address_detail"));
		entity.setLogisticsType(rs.getString("logistics_type"));
		return entity;
	}
	
	public long getBillId() {
		return billId;
	}
	public void setBillId(long billId) {
		this.billId = billId;
	}
	public long getOrderId() {
		return orderId;
	}
	public void setOrderId(long orderId) {
		this.orderId = orderId;
	}
	public int getObType() {
		return obType;
	}
	public void setObType(int obType) {
		this.obType = obType;
	}
	public String getObName() {
		return obName;
	}
	public void setObName(String obName) {
		this.obName = obName;
	}
	public String getReceiveUsername() {
		return receiveUsername;
	}
	public void setReceiveUsername(String receiveUsername) {
		this.receiveUsername = receiveUsername;
	}
	public String getReceiveMobile() {
		return receiveMobile;
	}
	public void setReceiveMobile(String receiveMobile) {
		this.receiveMobile = receiveMobile;
	}
	public String getReceiveProvince() {
		return receiveProvince;
	}
	public void setReceiveProvince(String receiveProvince) {
		this.receiveProvince = receiveProvince;
	}
	public String getReceiveCity() {
		return receiveCity;
	}
	public void setReceiveCity(String receiveCity) {
		this.receiveCity = receiveCity;
	}
	public String getReceiveAddressDetail() {
		return receiveAddressDetail;
	}
	public void setReceiveAddressDetail(String receiveAddressDetail) {
		this.receiveAddressDetail = receiveAddressDetail;
	}
	public String getLogisticsType() {
		return logisticsType;
	}
	public void setLogisticsType(String logisticsType) {
		this.logisticsType = logisticsType;
	}
	
	
}
